﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using control.Biz;

namespace TrangSucShop
{
    public partial class MasterPage : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            newprod2.SoCot = 1;
            newprod2.Title = "Ngẫu nhiên";
            newprod2.SoSp = 2;
            //san pham sale
            List<BizSanPham> prods = new List<BizSanPham>();
            prods = BizSanPham.Getramdom(2);//lay ra list all sp
            newprod2.Datasource = prods;//gang newprod cho datasource


        }
    }
}
